package com.springmvc.web.majiang.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author WangRuChao
 * @since 2017-12-11
 */
public class Room extends Model<Room> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private String roomname;
	private Date createtime;
	private Date updatetime;
	private Long roomuserid;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoomname() {
		return roomname;
	}

	public void setRoomname(String roomname) {
		this.roomname = roomname;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public Long getRoomuserid() {
		return roomuserid;
	}

	public void setRoomuserid(Long roomuserid) {
		this.roomuserid = roomuserid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Room{" +
			"id=" + id +
			", roomname=" + roomname +
			", createtime=" + createtime +
			", updatetime=" + updatetime +
			", roomuserid=" + roomuserid +
			"}";
	}
}
